﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
using GameCell.ConfigDataMaker.Configs;

namespace GameCell.ConfigDataMaker
{
    class Program
    {
        private const string connStr = "server=127.0.0.1;port=3306;uid=root;pwd=123456;database=cof.config;pooling=true";
        private static void Main(string[] args)
        {
            new ConfigData(@"../../data/技能表.xlsx", 0, "id").Parse<SkillConfig>().SaveToDb(connStr);

            Console.WriteLine("转表完成！");
            var skills = ConfigData.ReadFromDb<SkillConfig>(connStr);
            Console.ReadLine();
        }
    }
}
